package com.community.contents.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.community.contents.dto.TopicDTO;
import com.community.contents.entity.TopicEntity;
import com.community.contents.mapper.TopicMapper;
import com.community.contents.service.ITopicService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.community.contents.vo.TopicVo;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 圈子 服务实现类
 * </p>
 *
 * @author admin
 * @since 2023-02-22
 */
@Service
public class TopicServiceImpl extends ServiceImpl<TopicMapper, TopicEntity> implements ITopicService {

    @Override
    public void pageDto(Page<TopicDTO> page) {
        baseMapper.pageDto(page);
    }

    @Override
    public TopicVo detail(Integer id) {
        return baseMapper.detail(id);
    }
}
